#!/usr/bin/env python3
# _*_coding: utf-8 _*_
# @Time   :2020/6/25 17:58
# @Author :zhangyan
# @Software  :PyCharm

import unittest
import sys


class test1(unittest.TestCase):
    def tearDown(self):
        print("test1执行之后执行")

    def setUp(self):
        print("test1执行之前执行")

    def test_1(self):
        try:
            self.assertEqual(1, 2)
        except AssertionError:
            print("断言失败的错误信息是:", sys.exc_info()[1])
            raise


if __name__ == '__main__':

    unittest.main()